# 对token拼接前缀，依此来区分不同的user，避免出现token混淆的状况
import uuid

def generate_token(Prefix = None):
    token = Prefix + uuid.uuid4().hex
    return token

def generate_movie_user_token():
    token = generate_token(Prefix='movie_user')
    return token

def generate_admin_user_token():
    token = generate_token(Prefix='admin_user')
    return token
def generate_cinema_user_token():
    token = generate_token(Prefix='cinema_user')
    return token
